class User {
    String username
    String passwordHash
    
    String email
    static hasMany = [stories:Story]

    static constraints = {
        username(nullable: false, blank: false, unique:true)
        email(nullable: false, blank: false, email:true)
    }
}
